Refactored checkTile to allow for more possibilities like picking up items