to check possible moves