Check the direction the player is moving and, based on that, check if there's something on the way. If there's nothing, then draw the sprite on the new position. Else, maintain previous position.