Fixed a problem with the player moving between tiles occasionally.