Made screen global, moved some code into an initialise() to spread the logic out. Most of the drawGrid code seems to be okay, I just need to set each rectangle's x and y coordinates so that they don't all draw on the same area