Completed game logic
Random number generator. Resolves #11