Html5 turn based game