added red ghost, collision detection on tile edges