Modification of Cherno Project to use JFrame Graphics instead of pixel