Base code for tile based games in Java.