Fixed wrong tile flipping and collision object generation for flipped tiles