The code itself is more complicated than it needs to be,
as it was originally designed for a multiplayer game, seperating client and server view.

So many parts can be made more efficiently and direct.