- properly separated scripting and game code; - added a more suitable pseudo random number generator