Made trick success and failed functions
Refactored the fitness factory into correct design