Successfully changed Swing timer in to a Thread.
Next: reimplement the update() method in AnimationWindow.java(or maybe
redesign the logic)