Added move right and left and collision detection