Added Gameplay logic

left on page 69.