Added global variables, basic paint