Finished the lookup tables and move functions.