Adding a walkedTile list to reduce the need to rebuild the path list every time.
Fixed a bug that was still calculating paths for start and end tiles that were not walkable.
- Added ability to enable and disable diagonal path finding.
- Added code to color closed tiles transparent red.
- Added tie detection by checking the hScore if the fScore is equal.
Tried to add unit movement between tiles. Something isn't right.
Unit follows path sometimes, but if it never reaches the nextWorldLocation things get strange.
Finally have the green dot following the red line. Just need to fix some bugs while the dot is still in the process of moving.
Fixed some path finding bugs when recalculating the path while moving.
Tweaked the unit movement variables and added a speedModifier that slows the unit down when it reaches the final location. Also resized the unit and changed a few of the map colors.
Made units easier to see, removed some code to speed things up a bit, still need to figure out how to make the pathfinding more fluid by using a path buffer.
Removed some commented lines.
Adding button class.
Replaced some for each statements with for statements.
- Added some debugging code to find a bug with the pathfinder.
- Fixed an issue where the pathfinder was sometimes ignoring the need to
  recalculate the path when the lastMovementTime was bigger than the max
  update time.
- Added code to detect when a path has a length of 0 when running
  followPath.
Added code for the button object and tested it.
Fixed some bugs with the way the navigationTiles were being cleaned up.
Renamed the button object.
Added ui modules.
Moved button code to a new file.
Added code for the component module.
Added more methods for the ui button.
Added code to display the ui button.