ship movement and collision detection and fixed some rendering bug