Implemented gb_valid_moves