added illegal move validation
wins added