First algorithm for the game
Merge pull request #1 from dinusha92/master

First algorithm for the game