Implemented movegen for legality testing; fixed a bug with the display of the clocks