Added a new heuristic, and refactored

Added a heuristic that emphasizes the center of the board, instead of
the edges. Also refactored both functions to be better.