Started TileScrolling class and minor bugfixes.

Started work on tile-scrolling, and made some minor bugfixes.
Also added a vector math file.