Merge pull request #1 from ryanplasma/master

Move game loop to function
sweet battle algos
update to class version