Added global variables and function DrawBoard()