add error handlers
fix bug with game synchronization