Implemented update() method of StateOfGame