Added legal_moves method