#5: Rewrote Masks and Tiles and added the Hex and Test versions.