Initial commit.
Created a method based on a formula to find the number of moves.