Fixed margin size for small boards

Now calculates the margin size for smaller boards so that the pieces will entirely fit on the screen for all board sizes.

Changed maxX/Y to x/yMax to match naming convention.
GameWindow cleanups

Fixed style of the enums to all uppercase. Fixed some comments.