building submitMove, but whoseTurn is of type Player
don't know whether compiles, but lots of new code in submitMove
took ages to realise shouldn't have const. fixed now