Finished refactoring move generation. Still have a preft off by 4 error.