Implementing game simulation