Basic communication between JavaScript and PHP.
The PHP file feeds moves to make.
The game only responds to new moves.
The game reads moves from a MySQL database, parameterized the move and refresh rate.