New mapping code almost complete, just maybe flip around numbers to make down mean down and right mean right rather than the inverse. Tile detection also needs checking.