client side code, more tests, change nextPlayerId implementation