Refactoring: Pathfinder, Tile, drawTile

Refactor Pathfinder into a separate class, add isEqual to Tile class,
fix drawTile bug that may occur when game centering causes sub-pixel
rendering