Code until  Chapter 2 , GamePanel Class

A piece of Java Code up to Chapter 2