Hello, I developed a simple system of inserting objects in the game based on the values of an array, more necessarily to make maps.

The code reads a text file and pulls all the values into an array. From that array, I insert objects in the game.

The code is working, but the objects are not aligning with the "grid" (white lines). I think the problem should be in my math haha, so, can someone help me?

Note: in the following file have a image showing the problem and the source code.

Files:
https://mega.nz/#!aY1HXYCa!ZuKqyryUU...dceG_aKP_BKPVw