Abstracted painter out into different class. Updated item id variables so that they are a global variable.