fixed bug where players could move opponent figures
remove unused dependency
fix style issue
gracefully close websocket before unload of page