Finished disabling buttons based on their state and previous move