Made painter class. Made everything more OOP