fixed a bug in the paintComponent, added the first gameloop