Added definition of success and completed first fully functionable version of the game