Java swing and basic 2d game creation