add collision detection of game stage boundaries