Fix int CheckWin function.
Added methods getWidth and getHeight.