left boundary checking for player and ghost