for direction in [BITS.NORTH, BITS.SOUTH, BITS.EAST, BITS.WEST]:
position = self.get_adjacent_position(direction)
if position is not None and self.bits.check_bit(direction):
for direction in [BITS.NORTH, BITS.SOUTH, BITS.EAST, BITS.WEST]:
position = self.get_adjacent_position(direction)
if position is not None and self.bits.check_bit(direction):