Player is now controlled much more via javascript instead of doing everything in C++