Changed game algo to use center box if available. Did some cleanup and documentation