Player can now move pieces around

I reckon that I'll need to restructure things a bit when I make the AI
as the ui.move function is currently in an inaccessible scope for the
soon-to-be ai.js file.