Removed the use of global variables and encapsulated genetics into a class, using class variables instead.