added skeleton code
added game logic