Basic Engine for 2D grid-based games