Backend game logic is functioning. Javascript incomplete and win detection not done.