Added missed case of cube being within screen.