implemented game logic
added div to display info