Added a grid for the tile position calculating