Migrating game engine code to server side