Determining a collision between the player and tiles