Refactored code and added positional heuristic

Also added the ability to view your best game state by pressing b.