move isOnScreen fn to utils

bossman wanna me to jump ...