finished get possible moves in cpp... hopefully