Added a function to grid to output its state as a 2d array for use by the AI. Re-added the position() function to the Piece class.
Major refactoring.
Merged all the graphics code (besides the main window) into the data
classes.
Removed most magic numbers in the graphics code.