Learning how to develop basic 2D games using pure Java