Judge rules Shiue should enter sex offender program