Created logic allowing moves to be recorded