Computing Q vlaues for invalid moves

Saving last action's Q value to compute Q values for invalid moves. And
saving all Q values and current move's features to be recorded in the
test file.