Moved the calls for checkTiles() so the collisions are more precise.