Added global variables HEIGHT, WIDTH and SQUARES (of chessboard) to get rid of "magic numbers"