Library for tile based games