Helper functions

Converts pixel position to tile
Draw mouse cursor only if seen by player.