Added setLastMove method.