Rearrange file to more sane groupings
attempt to defeat client/server desync
Optimize calculating valid directions.