Added physics to check if the top of the player is being touched by a block