It's a personal exercise to train my understanding related to Threads, JPanel paintComponent method and scope handling in anonymous classes