All computation done on the server, status sent at the end and more logic and animation client side. code starts to look a bit crappy ...