check position in tilemap