Added in some more code to try and make moves authenticate correctly