fixed player calculation of moves but flip not working