Added collision detection for spaceship movement left/right/up/down.