Fixed invalid moves