add some logic to game