got minmaxing working, ai is unbeatable. moved classes into own file to unclutter the view controller