Profiling.
Fixed bug in game logic.