fixed bug of ball going below window